package org.soc.timesheet.domain.repository;
import java.util.List;

import org.soc.timesheet.domain.Projects;
import org.soc.timesheet.domain.SubProjects;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.roo.addon.layers.repository.jpa.RooJpaRepository;
import org.springframework.stereotype.Repository;

@Repository
@RooJpaRepository(domainType = SubProjects.class)
public interface SubProjectsRepository extends JpaSpecificationExecutor<SubProjects>, JpaRepository<SubProjects, Integer> {
	
	public List<SubProjects> findByIdProject(Projects p);

	public Page<SubProjects> findByIdProject(Projects project,
			Pageable pageRequest);
}
